using System;
using System.Collections.Generic;
using System.Windows.Forms;

namespace GPX
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static int Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            //bool configured = true;
            //string tmp = System.Configuration.ConfigurationManager.AppSettings["ConfigurationCompleted"];
            //if (!string.IsNullOrEmpty(tmp))
            //    configured = bool.Parse(tmp);
            //if (!configured)
            //{
            //    //Tell the user to do the configuration
            //    string msg = GPXAppResourceManager.ResourceManager.GetString("GPX_Program_Main_Config");
            //    MessageBox.Show(msg);
            //    return 1;
            //}

            MainFrame mf = new MainFrame();
            if (args.GetLength(0) == 1 && System.IO.Path.GetExtension(args[0]).ToLower() == ".gpx")
            {
                mf.OpenFile(args[0]);
            }
            Application.Run(mf);
            return 0;
        }
    }
}